アプリケーションの __init__.py あたりに以下をような感じで書いとけば SQL ログが出るようになる。 import logging logging.basicConfig() logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO) Engine Configuration — SQLAlchemy 1.1 Documentation
Working with Engines and Connections¶ This section details direct usage of the Engine, Connection, and related objects. Its important to note that when using the SQLAlchemy ORM, these objects are not generally accessed; instead, the Session object is used as the interface to the database. However, for applications that are built around direct usage of textual SQL statements and/or SQL expression c
jqでparse error: Invalid string: control characters from U+0000 through U+001F must be escapedが出るときの対応Bashshell
どういう時使うの? 本番環境などの常にサーバーが動いていないといけない環境で、何かのエラーでサバーが落ちてしまった場合に再起動してくれたりするらしい。 今回はnuxtで使ってみたので、その時のをまとめて見ようかと思います。 環境 EC2のamazon Linuxで行いました。 設定 まずはnuxtサーバーを監視するための設定ファイルを作ります。 ここではcalender-appをアプリケーション名とします。 /etc/systemd/system/配下にサービス名.serviceでファイルを作成します。 /etc/systemd/system/calender-app.serviceって感じですね。 中身はこんな感じ [Unit] Description=calender-app After=syslog.target network.target [Service] ExecStart=
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く